package com.sxz.sbs.module.client.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sxz.sbs.R;
import com.sxz.sbs.module.client.bean.CarListBean;

import java.util.List;

/**
 * 车辆列表Adapter
 */

public class CarListAdapter extends BaseQuickAdapter<CarListBean,BaseViewHolder>{


    public CarListAdapter(@Nullable List<CarListBean> data) {
        super(R.layout.item_carlist,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CarListBean item) {
        helper.setText(R.id.tv_plateNumber,item.getTxt_CarNumber());
        helper.setText(R.id.car_money,item.getTxt_CarPrice()+"元");
        helper.setText(R.id.car_brand,item.getTxt_Remark());
        helper.addOnClickListener(R.id.btn_car_delete);
    }
}
